/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package marketrmi;

import id2212.homework2.ClientInter;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Vector;

/**
 *
 * @author yann
 */
public interface MarketInter extends Remote {

    public AccountClientInter createAccountClient(String name, String passwordMarket, ClientInter client)
            throws RemoteException, Rejected;

    public AccountClientInter getAccount(String name, String password, ClientInter client)
            throws RemoteException, Rejected;

    public AccountClientInter getAccount(String name, String password)
            throws RemoteException, Rejected;

    public AccountClientInter getAccount(String name)
            throws RemoteException, Rejected;

    public boolean deleteAccount(AccountClientInter acc)
            throws RemoteException;

    public Vector getShowList()
            throws RemoteException;

    public void changePrice(ItemInter item, AccountClientInter accOwner, int newPrice)
            throws RemoteException;

    public void buyItem(ItemInter item, AccountClientInter acc, String passBank) throws RemoteException, Rejected;
}
